import request from '@/utils/request'

// 查询邀请列表
export function listCharge_invite_record(query) {
  return request({
    url: '/charge/charge_invite_record/list',
    method: 'get',
    params: query
  })
}

// 查询邀请详细
export function getCharge_invite_record(id) {
  return request({
    url: '/charge/charge_invite_record/' + id,
    method: 'get'
  })
}

// 新增邀请
export function addCharge_invite_record(data) {
  return request({
    url: '/charge/charge_invite_record',
    method: 'post',
    data: data
  })
}

// 修改邀请
export function updateCharge_invite_record(data) {
  return request({
    url: '/charge/charge_invite_record',
    method: 'put',
    data: data
  })
}

// 删除邀请
export function delCharge_invite_record(id) {
  return request({
    url: '/charge/charge_invite_record/' + id,
    method: 'delete'
  })
}
